/*******************************************************************************
 * Copyright (c) 2000, 2005 IBM Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     IBM Corporation - initial API and implementation
 *******************************************************************************/
package org.skyeye.modeling.customerized.figures;

import org.eclipse.draw2d.ColorConstants;
import org.eclipse.draw2d.Graphics;
import org.eclipse.draw2d.Label;
import org.eclipse.draw2d.StackLayout;
import org.eclipse.draw2d.geometry.Dimension;
import org.eclipse.draw2d.geometry.Point;
import org.eclipse.draw2d.geometry.Rectangle;
import org.eclipse.swt.graphics.Font;
import org.skyeye.modeling.Activator;
import org.skyeye.modeling.customerized.model.AVOutput;
import org.skyeye.modeling.customerized.model.SimpleInput;
import org.skyeye.modeling.customerized.model.SimpleOutput;

public class SquareWaveAVOutputFigure extends AVOutputFigure {
	/**
	 * Constructor for LiveOutputFigure.
	 */
	public SquareWaveAVOutputFigure() {
		super();

	}

	protected void paintLogo(Graphics graphics, Point center) {
		Point firstPoint = new Point(center.x - R, center.y + R / 2);
		Point secondPoint = new Point(center.x - R, center.y - R / 2);
		Point threePoint = new Point(center.x, center.y - R / 2);
		Point fourPoint = new Point(center.x, center.y + R / 2);
		Point fivePoint = new Point(center.x + R, center.y + R / 2);
		Point sixthPoint = new Point(center.x + R, center.y - R / 2);

		graphics.drawLine(firstPoint, secondPoint);
		graphics.drawLine(secondPoint, threePoint);
		graphics.drawLine(threePoint, fourPoint);
		graphics.drawLine(fourPoint, fivePoint);
		graphics.drawLine(fivePoint, sixthPoint);
	}

}
